#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void swap(int* p, int a)
{
	for (int c = 0; c < a - 1; c++)
	{
		for (int i = 0; i < a - 1 - c; i++)
		{
			if (p[i] > p[i + 1])
			{
				p[i] = p[i] ^ p[i + 1];
				p[i + 1] = p[i+1] ^ p[i];
				p[i] = p[i] ^ p[i + 1];

			}
		}
	}
}


int main()
{
	int arr[10] = { 2,3,6,1,7,9,8,4,5,0 };
	int s = sizeof(arr) / sizeof(arr[0]);
	swap(arr, s);
	for (int i=0; i < 10; i++)
	{
		printf("%d", arr[i]);
	}
}


















